package com.nanuminc.market.common;

import android.os.Parcelable;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;

public abstract class AbstractPagerAdapter extends PagerAdapter implements
		LocalActivityManagerInterface {

	@Override
	public void destroyItem(View collection, int position, Object view) {
		((ViewPager) collection).removeView((View) view);
	}

	@Override
	public boolean isViewFromObject(View arg0, Object arg1) {
		return arg0 == ((View) arg1);
	}

	@Override
	public Parcelable saveState() {
		return null;
	}

	@Override
	public void finishUpdate(View arg0) {}
	
	@Override
	public void restoreState(Parcelable arg0, ClassLoader arg1) {}

	@Override
	public void startUpdate(View arg0) {}
}
